summaryrefslogtreecommitdiff
path: root/app/[lng]
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]')
-rw-r--r--app/[lng]/evcp/data-room/[projectId]/files/page.tsx5
-rw-r--r--app/[lng]/evcp/data-room/[projectId]/layout.tsx8
2 files changed, 7 insertions, 6 deletions
diff --git a/app/[lng]/evcp/data-room/[projectId]/files/page.tsx b/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
index baac96ad..8e07d2b4 100644
--- a/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
+++ b/app/[lng]/evcp/data-room/[projectId]/files/page.tsx
@@ -4,10 +4,9 @@ import { FileManager } from '@/components/file-manager/FileManager';
export default async function ProjectFilesPage({
params,
}: {
- params: { projectId: string };
+ params: Promise<{ projectId: string }>;
}) {
-
- const projectId = await params.projectId
+ const { projectId } = await params;
return (
<div className="h-full flex flex-col">
diff --git a/app/[lng]/evcp/data-room/[projectId]/layout.tsx b/app/[lng]/evcp/data-room/[projectId]/layout.tsx
index d2e74f8e..16dd4817 100644
--- a/app/[lng]/evcp/data-room/[projectId]/layout.tsx
+++ b/app/[lng]/evcp/data-room/[projectId]/layout.tsx
@@ -1,16 +1,18 @@
// app/projects/[projectId]/layout.tsx
import { ProjectNav } from '@/components/project/ProjectNav';
-export default function ProjectLayout({
+export default async function ProjectLayout({
children,
params,
}: {
children: React.ReactNode;
- params: { projectId: string };
+ params: Promise<{ projectId: string }>;
}) {
+ const resolvedParams = await params;
+
return (
<div className="flex flex-col h-full">
- <ProjectNav projectId={params.projectId} />
+ <ProjectNav projectId={resolvedParams.projectId} />
<div className="flex-1 overflow-y-auto">
{children}
</div>